<div class="wrap">
	<?php screen_icon();?>
	<h2><?php echo Nextapp::__('Nextapp Settings');?></h2>

	<form method="post" action="options.php">
	<?php settings_fields('nextapp'); ?>
	
	<table class="form-table">
		<!--
		<tr valign="top">
			<th scope="row"><?php #_e('Page Access') ?></th>
			<td>
				<fieldset>
					<legend class="screen-reader-text"><span><?php #_e('Enable Page Access') ?></span></legend>
					<label for="nextapp_page_access">
						<input name="nextapp_page_access" type="checkbox" id="nextapp_page_access" value="1" <?php #checked('1', get_option('nextapp_page_access')); ?> />
						<?php #_e('Enable Page Access') ?>
					</label>
				</fieldset>
			</td>
		</tr>
		-->
		<?php foreach (Nextapp::options() as $option):?>
		<tr valign="top">
			<th scope="row"><?php echo $option->getTitle();?></th>
			<td><?php echo $option->render();?></td>
		</tr>
		<?php endforeach;?>
	</table>
	
	<?php do_settings_sections('nextapp'); ?>
	
	<?php
	if (!function_exists('submit_button')) {
		function submit_button($name = 'submit') {
			$button = '<input type="submit" name="' . $name . '" id="' . $name . '" class="button-primary" value="' . __('Save Changes') . '" />';
			if ($name == 'submit') {
				$button = '<p class="submit">' . $button . '</p>';
			}
			echo $button;
		}
	}
	submit_button();
	?>
	</form>
</div>